<HTML>
<HEAD>
<TITLE>Listing of configuration_bits.c</TITLE>
<LINK rel=stylesheet href="udf_styles.css" type="text/css">
</HEAD>
<BODY>
<table class="">
<tr><td><code><i>     1</i> </code></td><td><code>&nbsp /******************************************************************************/</code></td></tr>
<tr><td><code><i>     2</i> </code></td><td><code>&nbsp /*&nbsp Main&nbsp Files&nbsp to&nbsp Include&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>     3</i> </code></td><td><code>&nbsp /******************************************************************************/</code></td></tr>
<tr><td><code><i>     4</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>     5</i> </code></td><td><code>&nbsp #if&nbsp defined(__XC)</code></td></tr>
<tr><td><code><i>     6</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp #include&nbsp&lsaquo  xc.h&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp /*&nbsp XC8&nbsp General&nbsp Include&nbsp File&nbsp */</code></td></tr>
<tr><td><code><i>     7</i> </code></td><td><code>&nbsp #elif&nbsp defined(HI_TECH_C)</code></td></tr>
<tr><td><code><i>     8</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp #include&nbsp&lsaquo  htc.h&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp /*&nbsp HiTech&nbsp General&nbsp Include&nbsp File&nbsp */</code></td></tr>
<tr><td><code><i>     9</i> </code></td><td><code>&nbsp #endif</code></td></tr>
<tr><td><code><i>    10</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    11</i> </code></td><td><code>&nbsp //&nbsp CONFIG</code></td></tr>
<tr><td><code><i>    12</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp FOSC&nbsp =&nbsp HS&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Oscillator&nbsp Selection&nbsp bits&nbsp (HS&nbsp oscillator:&nbsp High-speed&nbsp crystal/resonator&nbsp on&nbsp RA6/OSC2/CLKOUT&nbsp and&nbsp RA7/OSC1/CLKIN)</code></td></tr>
<tr><td><code><i>    13</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp WDTE&nbsp =&nbsp OFF&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Watchdog&nbsp Timer&nbsp Enable&nbsp bit&nbsp (WDT&nbsp disabled)</code></td></tr>
<tr><td><code><i>    14</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp PWRTE&nbsp =&nbsp ON&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Power-up&nbsp Timer&nbsp Enable&nbsp bit&nbsp (PWRT&nbsp enabled)</code></td></tr>
<tr><td><code><i>    15</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp MCLRE&nbsp =&nbsp ON&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp RA5/MCLR/VPP&nbsp Pin&nbsp Function&nbsp Select&nbsp bit&nbsp (RA5/MCLR/VPP&nbsp pin&nbsp function&nbsp is&nbsp MCLR)</code></td></tr>
<tr><td><code><i>    16</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp BOREN&nbsp =&nbsp ON&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Brown-out&nbsp Detect&nbsp Enable&nbsp bit&nbsp (BOD&nbsp enabled)</code></td></tr>
<tr><td><code><i>    17</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp LVP&nbsp =&nbsp OFF&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Low-Voltage&nbsp Programming&nbsp Enable&nbsp bit&nbsp (RB4/PGM&nbsp pin&nbsp has&nbsp digital&nbsp I/O&nbsp function,&nbsp HV&nbsp on&nbsp MCLR&nbsp must&nbsp be&nbsp used&nbsp for&nbsp programming)</code></td></tr>
<tr><td><code><i>    18</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp CPD&nbsp =&nbsp OFF&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Data&nbsp EE&nbsp Memory&nbsp Code&nbsp Protection&nbsp bit&nbsp (Data&nbsp memory&nbsp code&nbsp protection&nbsp off)</code></td></tr>
<tr><td><code><i>    19</i> </code></td><td><code>&nbsp #pragma&nbsp config&nbsp CP&nbsp =&nbsp OFF&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp //&nbsp Flash&nbsp Program&nbsp Memory&nbsp Code&nbsp Protection&nbsp bit&nbsp (Code&nbsp protection&nbsp off)</code></td></tr>
<tr><td><code><i>    20</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    21</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    22</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    23</i> </code></td><td><code>&nbsp /******************************************************************************/</code></td></tr>
<tr><td><code><i>    24</i> </code></td><td><code>&nbsp /*&nbsp Configuration&nbsp Bits&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    25</i> </code></td><td><code>&nbsp /*&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    26</i> </code></td><td><code>&nbsp /*&nbsp Refer&nbsp to&nbsp your&nbsp Hi-Tech&nbsp User&nbsp Manual&nbsp in&nbsp the&nbsp PICC&nbsp installation&nbsp directory&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    27</i> </code></td><td><code>&nbsp /*&nbsp /doc&nbsp folder&nbsp for&nbsp more&nbsp information&nbsp on&nbsp filling&nbsp in&nbsp configuration&nbsp bits.&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    28</i> </code></td><td><code>&nbsp /*&nbsp In&nbsp addition,&nbsp configuration&nbsp bit&nbsp mnemonics&nbsp can&nbsp be&nbsp found&nbsp in&nbsp your&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    29</i> </code></td><td><code>&nbsp /*&nbsp PICC\version\include\&lsaquo  processor&nbsp name&rsaquo  .h&nbsp file&nbsp for&nbsp your&nbsp device.&nbsp&nbsp The&nbsp XC8&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    30</i> </code></td><td><code>&nbsp /*&nbsp compiler&nbsp contains&nbsp documentation&nbsp on&nbsp the&nbsp configuration&nbsp bit&nbsp macros&nbsp within&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    31</i> </code></td><td><code>&nbsp /*&nbsp the&nbsp compiler&nbsp installation&nbsp /docs&nbsp folder&nbsp in&nbsp a&nbsp file&nbsp called&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    32</i> </code></td><td><code>&nbsp /*&nbsp pic18_chipinfo.html.&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    33</i> </code></td><td><code>&nbsp /*&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    34</i> </code></td><td><code>&nbsp /*&nbsp For&nbsp additional&nbsp information&nbsp about&nbsp what&nbsp the&nbsp hardware&nbsp configurations&nbsp mean&nbsp in&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    35</i> </code></td><td><code>&nbsp /*&nbsp terms&nbsp of&nbsp device&nbsp operation,&nbsp refer&nbsp to&nbsp the&nbsp device&nbsp datasheet.&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    36</i> </code></td><td><code>&nbsp /*&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    37</i> </code></td><td><code>&nbsp /*&nbsp A&nbsp feature&nbsp of&nbsp MPLAB&nbsp X&nbsp is&nbsp the&nbsp 'Generate&nbsp Source&nbsp Code&nbsp to&nbsp Output'&nbsp utility&nbsp in&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    38</i> </code></td><td><code>&nbsp /*&nbsp the&nbsp Configuration&nbsp Bits&nbsp window.&nbsp&nbsp Under&nbsp Window&nbsp&rsaquo &nbsp PIC&nbsp Memory&nbsp Views&nbsp&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    39</i> </code></td><td><code>&nbsp /*&nbsp Configuration&nbsp Bits,&nbsp a&nbsp user&nbsp controllable&nbsp configuration&nbsp bits&nbsp window&nbsp is&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    40</i> </code></td><td><code>&nbsp /*&nbsp available&nbsp to&nbsp Generate&nbsp Configuration&nbsp Bits&nbsp source&nbsp code&nbsp which&nbsp the&nbsp user&nbsp can&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    41</i> </code></td><td><code>&nbsp /*&nbsp paste&nbsp into&nbsp this&nbsp project.&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    42</i> </code></td><td><code>&nbsp /*&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    43</i> </code></td><td><code>&nbsp /******************************************************************************/</code></td></tr>
<tr><td><code><i>    44</i> </code></td><td><code>&nbsp </code></code></BODY>
</HTML>
